<div class="wrapper wrapper-content animated fadeIn" ng-controller="radiotherapyRecordCtrl">
  <div class="row">
    <div class="col-lg-12">
      <div class="ibox float-e-margins">
        <div class="ibox-content">
          <div id="radiotherapyRecord" class="row" print-section>
            <div class="col-lg-12  col-md-12 col-sm-12 col-xs-12 row">
              <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6" style="margin-top:30px;">
                <img height="80px;width:100px;" src="assets/images/validate/logo.png">
              </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 row">
              <h1 class="col-lg-6 col-md-6 col-sm-6 col-xs-6 col-lg-offset-5 col-md-offset-5 col-sm-offset-5 col-xs-offset-5">放疗治疗记录单</h1>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 row">
              <div class="">
                <div id="basic" class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
                  <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 rowheight">
                    <div class="row">
                      <div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
                        <span>患者姓名</span>
                        <input type="text" ng-model="form.patientName">
                      </div>
                      <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                        <span>年龄</span>
                        <input type="text" ng-model="form.age">
                      </div>
                      <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1" print-remove>
                        <div class="radio">
                          <input type="radio" ng-value="1" ng-model="form.gender" id="male"><label for="male">男</label>
                        </div>
                      </div>
                      <div class="col-lg-1 col-md-1 col-sm-1 col-xs-1" print-remove>
                        <div class="radio">
                          <input type="radio" ng-value="2" ng-model="form.gender" id="female"><label for="female">女</label>
                        </div>
                      </div>
                      <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2" print-only>
                        <span>{{form.gender|getGender:form.gender}}</span>

                       <!-- <input type="text" ng-model="form.gender">-->
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
                        <span>病案号</span>
                        <input type="text" ng-model="form.caseNum">
                      </div>
                      <div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
                        <span>治疗计划号</span>
                        <input type="text" ng-model="form.planNum">
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-lg-5 col-md-5 col-sm-5 col-xs-5">
                        <span>病区</span>
                        <input type="text" ng-model="form.areaNum">
                      </div>
                      <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                        <span>床号</span>
                        <input type="text" ng-model="form.bedNum">
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <span>执行治疗机</span>
                        <input type="text" ng-model="form.machineNum">
                      </div>
                    </div>
                  </div>
                </div>
                <div class="col-lg-4 col-md-4  col-sm-4 col-xs-4" style="padding-left: 0;">
                  <textarea class="col-lg-12 col-md-12 col-sm-12 col-xs-12" rows="8" data-ng-model="form.chargeRecord" ng-on placeholder="收费记录:"></textarea>
                </div>
              </div>
            </div >


            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 row">
              <div class="col-lg-12">
                <div class="col-lg-12 ibox-content" style="border: 1px solid #000000;padding-bottom: 0;">
                  <div class="row">
                      <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                        <span>临床诊断</span>
                      </div>
                      <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                        <input id="clinical" type="text" ng-model="form.clinical">
                      </div>
                  </div>
                  <div class="row">
                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                      <span>治疗部位</span>
                    </div>
                    <div id="treatedArea" class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                      <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 checkbox" ng-repeat=" area in treatedArea">
                          <input type="checkbox" ng-model="area.id" id="{{area.name}}"><label for="{{area.name}}">{{area.text}}</label>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                      <span>治疗体位</span>
                    </div>
                    <div id="position" class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                      <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 checkbox " ng-repeat=" position in positions">
                          <input type="checkbox" ng-model="position.id" id="{{position.name}}"><label for="{{position.name}}">{{position.text}}</label>
                        </div>
                    </div>
                  </div>
                  </div>
                  <div class="row">
                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                      <span>治疗固定</span>
                    </div>
                    <div id="fixed" class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                      <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <div class="col-lg-2 col-md-2 col-sm-3 col-xs-3 checkbox " ng-repeat="fix in fixed">
                          <input type="checkbox" ng-model="fixed.id" id="dieHead"><label for="dieHead">{{fix.text}}</label>
                        </div>
                      </div>
                     </div>
                  </div>
              </div>
            </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 row">
              <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 ibox-content" style="border: 1px solid #000000;">
                  <div class="row">
                    <div class="col-lg-2  col-md-2 col-sm-2 col-xs-2 ">
                      治疗技术:
                    </div>
                    <div id="technology" class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                      <div  class="row">
                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 checkbox " ng-repeat="technology in technologies">
                          <input type="checkbox" ng-model="technology.id" id="{{technology.name}}"><label for="{{technology.name}}">{{technology.text}}</label>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                      首次验证:
                    </div>
                    <div id="validate" class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                      <div class="row">
                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 checkbox " ng-repeat="valdiate in firstValidate">
                          <input type="checkbox" ng-model="valdiate.epid" id="{{valdiate.name}}"><label for="{{valdiate.name}}">{{valdiate.text}}</label>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                      配准方式:
                    </div>
                    <div id="registration" class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                      <div class="row">
                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 checkbox " ng-repeat="registration in registrations">
                          <input type="checkbox" ng-model="registration.id" id="{{registration.name}}"><label for="{{registration.name}}">{{registration.text}}</label>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                      临床试验:
                    </div>
                    <div id="clinicalTrial" class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                      <div class="row">
                        <div class="col-lg-2 col-md-2 col-sm-2 col-xs-3 checkbox ">
                          <input type="checkbox" ng-model="clinicaltrial.id" id="clinicaltrial.name"><label for="clinicaltrial.name">参与项目</label>
                          </div>
                        <div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
                          <input type="text" ng-model="project">
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                    </div>
                    <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                      <div class="row">
                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                          医师组
                          <img style="width: 50px;height: 20px;" ng-src="assets/images/common/def-treat-dr01.jpg">
                          <!--<input type="text" ng-model="doctors">-->
                        </div>
                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                          医生签名
                          <img style="width: 50px;height: 20px;" ng-src="assets/images/common/def-treat-dr02.jpg">
                         <!-- <input type="text" ng-model="doctorSignature">-->
                        </div>
                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                          物理师
                          <img style="width: 50px;height: 20px;" ng-src="assets/images/common/def-treat-dr03.jpg">
                          <!--<input type="text" ng-model="physics">-->
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>

            <!--表格-->
            <div id="recordTable" class="col-lg-12 col-md-12 col-sm-12 col-xs-12" print-avoid-break>
              <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <div class="row" print-only>
                  <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4" style="padding-left: 0;">
                    <span>患者姓名</span>
                    <input type="text" ng-model="form.patientName">
                  </div>
                  <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                    <span>病案号</span>
                    <input type="text" ng-model="form.caseNum">
                  </div>
                  <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                    <span>治疗计划</span>
                    <input type="text" ng-model="form.planNum">
                  </div>
                </div>
                <div class="row">
                  <table class="footable table table-stripped toggle-arrow-tiny " id="mainTable"
                         data-page-size="20" >
                    <thead>
                    <tr>
                      <th>治疗日期</th>
                      <th>次数</th>
                      <th>医师签名</th>
                      <th>物理师签名</th>
                      <th>技师签名</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="record in records track by $index">
                      <td>{{record.date}}</td>
                      <td>{{record.times}}</td>
                       <td><img src="{{record.dr}}" style="width: 50px;height: 30px;"></td>
                       <td><img src="{{record.dr2}}" style="width: 50px;height: 30px;"></td>
                       <td><img src="{{record.dr3}}" style="width: 50px;height: 30px;"></td>
                    </tr>
                    </tbody>
                    <tfoot>
                    <tr>
                      <td colspan="50">
                        <ul class="pagination pull-right"></ul>
                      </td>
                    </tr>
                    </tfoot>
                  </table>
                </div>
              </div>
            </div>
          </div>

          <div class="row">
            <div class="col-lg-12">
              <div class="pull-right">
                <a href="" class="btn btn-white" ng-click="edit()"><i class="fa fa-pencil"></i> 编辑 </a>
                <a href="" class="btn btn-white" ng-click="save()"><i class="fa fa-check "></i> 保存 </a>
                <a class="btn btn-primary" print-btn><i class="fa fa-print"></i> 打印 </a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</div>
<!--<div id="btn" class="wrapper wrapper-content">
  <div class="row">
      <div class="col-lg-12">
      <div class="ibox-content" style="padding-top: 20px;padding-bottom: 50px;">
        <div class="col-sm-4 col-sm-offset-8">
            <a href="" class="btn btn-white" ng-click="edit()"><i class="fa fa-pencil"></i> 编辑 </a>
            <a href="" class="btn btn-white" ng-click="save()"><i class="fa fa-check "></i> 保存 </a>
            <a print-btn class="btn btn-primary" target="_blank"><i class="fa fa-print"></i> 打印 </a>
        </div>
      </div>
      </div>
    </div>
  </div>-->

